import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: "/Home"
    },
    { path: "/Home",
      component: resolve => require(['@/components/Home'], resolve) },
    { path: "/HashDetail/:id", 
      component: resolve => require(['@/components/HashDetail'], resolve) },
    { path: "/Transaction/:id",
      component: resolve => require(['@/components/Transaction'], resolve) },
    { path: "/Search/:id",
      component: resolve => require(['@/components/Search'], resolve) },
    { path: "/More/:id",
      component: resolve => require(['@/components/More'], resolve) },
    { path: "/LogReg",
      component: resolve => require(['@/components/LogReg'], resolve),
      children: [
      { path: "Login",
        component: resolve => require(['@/components/SubComponents/Login'], resolve) },
      { path: "Regist",
        component: resolve => require(['@/components/SubComponents/Regist'], resolve) }
    ] }
  ]
})
